#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int Print(void)
{
    char c[81];
    int Count;
    if (scanf("%s", c) != EOF)
    {
        Count = Print();
        if (!Count)
            printf("%s", c);
        else
            printf(" %s", c);
        return Count + 1;
    }
    else
        return 0;
}

int main()
{
    Print();
    return 0;
}
